﻿<Application 
     x:Class="OnlineVideos.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:Nav="clr-namespace:System.Windows.Navigation;assembly=Microsoft.Phone"
    xmlns:my="clr-namespace:System;assembly=mscorlib"
    xmlns:AdRotator="clr-namespace:AdRotator;assembly=AdRotator">

    <!--Application Resources-->
    <Application.Resources>

        <Nav:UriMapper x:Key="UriMapper">
            <Nav:UriMapper.UriMappings>
                <Nav:UriMapping Uri="/SearchExtras" MappedUri="/MainPage.xaml"/>
            </Nav:UriMapper.UriMappings>
        </Nav:UriMapper>

        <Style x:Key="AboutTitleStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Opal.ttf#Opal"/>
        </Style>

        <Style x:Key="MainPanoramaTitlestyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="56"/>
            <Setter Property="FontFamily" Value="/Fonts/Opal.ttf#Opal"/>
            <Setter Property="FontWeight" Value="Normal"/>
        </Style>

        <Style x:Key="SongsPivottyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Barrci"/>

        </Style>

        <Style x:Key="MainMenuItemTextStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="/Fonts/Baramond.ttf#Baramond"/>
            <Setter Property="Margin" Value="0,10,0,0"/>
        </Style>

        <Style x:Key="UpgradeMessageStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="38"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="TextWrapping" Value="Wrap"/>
            <Setter Property="Height" Value="240"/>
            <Setter Property="Width" Value="400"/>
        </Style>

        <Style x:Key="AboutUsMenuRowStyle" TargetType="StackPanel">
            <Setter Property="Orientation" Value="Horizontal"/>
            <Setter Property="Margin" Value="0,12,0,12"/>
        </Style>

        <Style x:Key="AboutUsMenuItemText" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="/Fonts/Baramond.ttf#Baramond"/>
            <Setter Property="Margin" Value="0,10,0,20"/>
        </Style>

        <Style x:Key="FormElementLabel" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="30"/>
            <Setter Property="FontFamily" Value="Calibri"/>
        </Style>

        <Style x:Key="RelatedAppCountStyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="32"/>
            <Setter Property="IsHitTestVisible" Value="False"/>
            <Setter Property="Margin" Value="15,20,0,0"/>
        </Style>

        <Style x:Key="RelatedAppCountContainer" TargetType="Ellipse">
            <Setter Property="Canvas.Left" Value="3" />
            <Setter Property="Canvas.Top" Value="12" />
            <Setter Property="Width" Value="60" />
            <Setter Property="Height" Value="60" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="Fill" Value="#841717" />
            <Setter Property="Stroke" Value="White" />
            <Setter Property="StrokeThickness" Value="3" />
            <Setter Property="IsHitTestVisible" Value="False" />
        </Style>

        <Style x:Key="DetailPagePivotTitle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="25"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="Margin" Value="15,0,0,0"/>
        </Style>

        <Style x:Key="DetailPagePivotTitleImage" TargetType="Image">
            <Setter Property="Source" Value="/Images/Pivot/Title.png"></Setter>
            <Setter Property="Width" Value="36"></Setter>
            <Setter Property="Height" Value="36"></Setter>
            <Setter Property="Stretch" Value="Uniform"></Setter>
            <Setter Property="HorizontalAlignment" Value="Left"></Setter>
        </Style>

        <Style x:Key="logo" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Logo.png"></Setter>
        </Style>

        <Style x:Key="Title" TargetType="Image">
            <Setter Property="Source" Value="Images/Panorama/Title.png"></Setter>
        </Style>

        <ImageBrush x:Name="bipivot" ImageSource="Images/Pivot/Background.jpg" ></ImageBrush>

        <Style x:Key="tblkcategory" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="36"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="FontWeight" Value="Normal"/>

        </Style>

        <Style x:Key="AboutContactstyle" TargetType="TextBlock">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontSize" Value="40"/>
            <Setter Property="FontFamily" Value="Calibri"/>
            <Setter Property="Height" Value="75"/>
        </Style>

        <Style x:Key="logoimg" TargetType="Image">
            <Setter Property="Margin" Value="10,0,0,0"></Setter>
        </Style>
        <Style x:Key="QuizReviewOptions" TargetType="TextBlock">
            <Setter Property="FontSize" Value="28"/>
            <Setter Property="Width" Value="410"></Setter>
            <Setter Property="Margin" Value="20,0,10,0"/>
            <Setter Property="TextWrapping" Value="Wrap"></Setter>
            <Setter Property="Foreground" Value="White"></Setter>
        </Style>
        <Style TargetType="phone:PhoneApplicationFrame" x:Key="RootFrameStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="phone:PhoneApplicationFrame">
                        <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >
                            <Grid>
                                <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" />
                                <Grid Height="80" Width="480"  VerticalAlignment="Bottom" HorizontalAlignment="Center">
                                    <AdRotator:AdRotatorControl x:Name="AdRotatorWin8" Background="Black"
                                        AdHeight="80"
                                        AdWidth="480"
                                        VerticalAlignment="Bottom" 
                                        HorizontalAlignment="Center"
                                        DefaultSettingsFileUri="/DownloadManger;component/DefaultData/defaultAdSettings.xml"
                                        SettingsUrl="http://lartsoft.org/wp7ads/VedicLibrarydefaultAdSettings.xml"                
                                        />
                                </Grid>

                            </Grid>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="QuizRadioButtonStyle" TargetType="RadioButton">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Margin" Value="2,0,0,0"/>
        </Style>
        <Style x:Key="QuizCheckBoxStyle" TargetType="CheckBox">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="VerticalAlignment" Value="Top"></Setter>
            <Setter Property="Margin" Value="2,0,0,0"/>
        </Style>


        <my:String x:Key="AudioApp">true</my:String>
        <my:String x:Key="DetailPage">false</my:String>
        <my:String x:Key="dtailsongs">true</my:String>
        <my:String x:Key="CategoryPvt">false,subjects</my:String>
        <my:String x:Key="castpnm">false</my:String>
        <my:String x:Key="dtailchapter">false</my:String>
        <my:String x:Key="AdVisible">True</my:String>
        <my:String x:Key="songs">false</my:String>
        <my:String x:Key="movies">false</my:String>
        <my:String x:Key="ratingsongs">true,rate this file,rate this file</my:String>
        <my:String x:Key="dtailcast">false</my:String>
        <my:String x:Key="CricketDetails">false</my:String>
        <my:String x:Key="dtailcheat">false</my:String>
        <my:String x:Key="AudioPivotTitle">audio</my:String>
        <my:String x:Key="pvtitmSongsTitle">videos</my:String>
        <my:String x:Key="pvtTitleTwo"></my:String>
        <my:String x:Key="pvtFHStitlesTwo">videos</my:String>
        <my:String x:Key="pvtFHStitlesThree">characters</my:String>
        <my:String x:Key="pvtFHStitlesFour">audio</my:String>
        <my:String x:Key="prmh">top shows</my:String>
        <my:String x:Key="productid">B99454C2-9B21-11E1-8FD2-58546188709B</my:String>
        <my:String x:Key="misuid">70264</my:String>
        <my:String x:Key="misappid">6e21c3a1-40ce-4cf0-b5d1-91956fcc53b0</my:String>
        <my:String x:Key="readMore">more downloads</my:String>
        <my:String x:Key="mln">download list</my:String>
        <my:String x:Key="VideoTitleName">true</my:String>
        <my:String x:Key="Message">true</my:String>
        <my:String x:Key="ContextMenu">Hide Series,Show Series,HIDE SHOWS</my:String>
        <my:String x:Key="ShowUpgradePage">false</my:String>
        <my:String x:Key="UpgradePageMessage"></my:String>
        <my:String x:Key="SubjectsTitle">quiz</my:String>
        <my:String x:Key="DetailPageName">DownloadDetails</my:String>
        <my:String x:Key="FavoritePageName">FavoriteDownloads</my:String>
        <my:String x:Key="HistoryPageName">DownloadsHistory</my:String>
        <my:String x:Key="DownloadShow">true</my:String>
        <my:String x:Key="Primaryshowsfromblog">http://wp7educationsshows.blogspot.com/feeds/posts/default?alt=rss</my:String>
        <my:String x:Key="Primarypeoplefromblog"></my:String>
        <my:String x:Key="Quizstartmessage">You are about to take the quiz test.             
     The quiz test contains multiple choice style questions.Complete each question by using radio buttons or check boxes then select Next button for next Question.When you are ready to begin, select the Start button below</my:String>
        <my:String x:Key="Quizdisplay">false</my:String>
        <my:String x:Key="QuizResultTitle">Quiz Result</my:String>
        <ImageBrush x:Name="bi" ImageSource="Images/Panorama/Background.jpg"></ImageBrush>
        <my:Int32 x:Key="PeopleInsertLimit">5</my:Int32>
        <my:Int32 x:Key="ShowsInsertLimit">2</my:Int32>
        <my:String x:Key="RestoreShow">Show Story</my:String>
        <my:String x:Key="RegisterDownloadAgent">true</my:String>
        <my:String x:Key="DownloadPeople">false</my:String>
        <my:String x:Key="DownloadImagePageName">DownloadedImagePopup</my:String>
        <my:String x:Key="PlayDownloadedVideos">PlayDownloadedVideos</my:String>
        <my:String x:Key="MainPage">MainPage</my:String>

    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>